package initial

import (
	beego "github.com/beego/beego/v2/adapter"
	"weiboxs.com/new_h_glasses/utils"
)

func InitTemplate() {

	beego.AddFuncMap("assets_version", func() string {
		return "v1.9.202201300901"
	})

	beego.AddFuncMap("getAssets", func() string {
		return "/static/"
	})

	beego.AddFuncMap("getDate", utils.GetDate)
	beego.AddFuncMap("getDateMH", utils.GetDateMH)
}
